﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ClassProject.Entity;
using Microsoft.ApplicationBlocks.Data;

namespace ClassProject.DAL
{
    class InformationDetailsDAL:ADONET
    {
        InformationDetailsEn infoDetailEntity = new InformationDetailsEn();

        public InformationDetailsDAL()
        {
            
        }

        #region Insert data table InformationDetails
        public int Insert()
        {
            int i = SqlHelper.ExecuteNonQuery(this._strCon, "sp_Insert_InfomationDetails", infoDetailEntity.InfoID, infoDetailEntity.AdminID, infoDetailEntity.Last_Insert);
            return i;
        }
        #endregion

        #region Update data table InformationDetails
        public int Update()
        {
            int i = SqlHelper.ExecuteNonQuery(this._strCon, "sp_Update_InformationDetails", infoDetailEntity.Admin_Update, infoDetailEntity.Last_Update, infoDetailEntity.InfoID);
            return i;
        }
        #endregion

        #region Delete data table InformationDetails
        public int Delete()
        {
            int i = SqlHelper.ExecuteNonQuery(this._strCon, "sp_Delete_InformationDetails", infoDetailEntity.Admin_Delete, infoDetailEntity.Last_Delete, infoDetailEntity.InfoID);
            return i;
        }
        #endregion
    }
}
